package com.ruoyi.web.wx.service;

import com.ruoyi.web.wx.entity.CommunityManager;
import com.ruoyi.web.wx.mapper.UserMapper;
import com.ruoyi.web.wx.utils.Assert;
import com.ruoyi.web.wx.utils.RRException;
import org.apache.commons.codec.digest.DigestUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public CommunityManager login(String mobile) {

        CommunityManager user = queryByMobile(mobile);


        return user;
    }

    public CommunityManager queryByMobile(String mobile) {
        return userMapper.queryByMobile(mobile);
    }


}
